import request from '@/utils/request'

// 查询列表
export function root(baseurl, query) {
  return request({
    url: baseurl + 'root',
    method: 'get',
    params: query
  })
}

// 查询列表
export function child(baseurl, pid, query) {
  return request({
    url: baseurl + 'child/' + pid,
    method: 'get',
    params: query
  })
}

// 查询列表
export function tree(baseurl, query) {
  return request({
    url: baseurl + 'tree',
    method: 'get',
    params: query
  })
}

// 查询列表
export function treeselect(baseurl, query) {
  return request({
    url: baseurl + 'treeselect',
    method: 'get',
    params: query
  })

}

export function childASC(baseurl, pid, query) {
  return request({
    url: baseurl + 'getChildList/' + pid,
    method: 'get',
    params: query
  })
}
